{% extends "base.html" %}

{% block title %}删除年级{% endblock %}

{% block body %}
  <br>
  <div class="container">
    <div class="row">
      <div class="col-md-8">

        <h1>确定要删除 {{ grade.name }} 吗？</h1>
        <form method="post" action="{% url 'grade_delete' grade.pk %}">
            {% csrf_token %}
            <button class="btn-lg btn-danger" type="submit" id="deleteBtn">删除</button>
        </form>
      </div>
    </div>

  </div>


{% endblock %}

{#{% block js %}#}
{#  <script>#}
{#    $(function () {#}
{#        $('#deleteBtn').click(function () {#}
{#            alert("删除年级成功！")#}
{#        })#}
{#    })#}
{#  </script>#}
{#{% endblock %}#}
